/*
 * @Descripttion:
 * @version:
 * @Author: kl2018
 * @Date: 2020-01-17 14:49:51
 * @LastEditors: kl2018
 * @LastEditTime: 2020-06-22 11:15:47
 */
import React, { Component } from 'react';

export default class QuickEntryElementComp extends Component {
  constructor(props) {
    super(props);

    this.state = {
      datas: [
        { name: getLabel('515333', '发文中心'), url: '/wui/index.html#/main/offical/sendDocManage', img: '/hrm/hrm_e9/image/sysadmin/item_cowork_wev8.png' },
        { name: getLabel('515334', '收文中心'), url: '/wui/index.html#/main/offical/receiveDocManage', img: '/hrm/hrm_e9/image/sysadmin/item_doc_wev8.png' },
        { name: getLabel('515335', '签报中心'), url: '/wui/index.html#/main/offical/signDocManage', img: '/hrm/hrm_e9/image/sysadmin/item_hrm_wev8.png' },
        { name: getLabel('383001', '公文库'), url: '/wui/index.html#/main/offical/odocLibraryNew', img: '/hrm/hrm_e9/image/sysadmin/item_custom_wev8.png' },
        { name: getLabel('384728', '待办公文'), url: '/wui/index.html#/main/offical/newTodo', img: '/hrm/hrm_e9/image/sysadmin/item_project_wev8.png' },
        { name: getLabel('509711', '待阅公文'), url: '/wui/index.html#/main/offical/odocToView', img: '/hrm/hrm_e9/image/sysadmin/item_cpt_wev8.png' },
        { name: getLabel('513073', '公文督办'), url: '/wui/index.html#/main/offical/supervise', img: '/hrm/hrm_e9/image/sysadmin/item_fna_wev8.png' },
        { name: getLabel('383653', '公文台账'), url: '/wui/index.html#/main/offical/accountList', img: '/hrm/hrm_e9/image/sysadmin/item_cowork_wev8.png' },
      ],
    };
  }


  render() {
    const { datas } = this.state;
    return (
      <div className="quickEntryElement">
        <ul>
          {
            datas.map((item, index) => (
                <li key={index}>
                  <a href={item.url} target="_blank">
                    <img src={item.img} alt={''} />
                    <span>{item.name}</span>
                  </a>
                </li>
              ))
          }
        </ul>

      </div>
    );
  }
}
